---
layout: single
property_name: animation-timing-function
---

<section id="animation-timing-function" class="property">
  <header class="property-header">
    <nav class="property-links">
        <a class="property-collection" href="{{site.url}}/animations/">
          In collection: <strong>animations</strong>
        </a>
      <a class="property-links-direct" href="{{site.url}}/property/animation-timing-function/" data-property-name="animation-timing-function" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="animation-timing-function">Share</a>
        <a target="_blank" href="http://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/animation-timing-function" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#animation-timing-function"><span>#</span>animation-timing-function</a>
    </h2>
    <div class="property-description">
      <p>Defines how the values between the <em>start</em> and the <em>end</em> of the animation are calculated.</p>

    </div>

      <div class="property-animation">
        <a class="button property-animation-toggle" data-property-name="animation-timing-function"></a>
      </div>
  </header>

    <style type="text/css">.animation-timing-function { animation-duration: 3s;animation-fill-mode: forwards; }</style>

    <style type="text/css">.animation-timing-function.is-animated { animation-name: moveRight; }</style>



    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="animation-timing-function: ease;">animation-timing-function: ease;</code>
        </p>
        <div class="example-description">
          <p>The animation starts slowly, accelerates in the middle, and slows down at the end.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div animation-timing-function  square square--plum" id="animation-timing-function-ease">Hello<br>World</div>
        </div>
      </aside>
          <style type="text/css">#animation-timing-function-ease{ animation-timing-function:ease;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="animation-timing-function: ease-in;">animation-timing-function: ease-in;</code>
        </p>
        <div class="example-description">
          <p>The animation starts slowly, and accelerates gradually until the end.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div animation-timing-function  square square--plum" id="animation-timing-function-ease-in">Hello<br>World</div>
        </div>
      </aside>
          <style type="text/css">#animation-timing-function-ease-in{ animation-timing-function:ease-in;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="animation-timing-function: ease-out;">animation-timing-function: ease-out;</code>
        </p>
        <div class="example-description">
          <p>The animation starts quickly, and decelerates gradually until the end.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div animation-timing-function  square square--plum" id="animation-timing-function-ease-out">Hello<br>World</div>
        </div>
      </aside>
          <style type="text/css">#animation-timing-function-ease-out{ animation-timing-function:ease-out;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="animation-timing-function: ease-in-out;">animation-timing-function: ease-in-out;</code>
        </p>
        <div class="example-description">
          <p>Like <code>ease</code>, but more pronounced.</p>
<p>The animation starts quickly, and decelerates gradually until the end.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div animation-timing-function  square square--plum" id="animation-timing-function-ease-in-out">Hello<br>World</div>
        </div>
      </aside>
          <style type="text/css">#animation-timing-function-ease-in-out{ animation-timing-function:ease-in-out;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="animation-timing-function: linear;">animation-timing-function: linear;</code>
        </p>
        <div class="example-description">
          <p>The animation has a <em>*constant speed</em>.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div animation-timing-function  square square--plum" id="animation-timing-function-linear">Hello<br>World</div>
        </div>
      </aside>
          <style type="text/css">#animation-timing-function-linear{ animation-timing-function:linear;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="animation-timing-function: step-start;">animation-timing-function: step-start;</code>
        </p>
        <div class="example-description">
          <p>The animation jumps <em>instantly</em> to the <strong>final state</strong>.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div animation-timing-function  square square--plum" id="animation-timing-function-step-start">Hello<br>World</div>
        </div>
      </aside>
          <style type="text/css">#animation-timing-function-step-start{ animation-timing-function:step-start;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="animation-timing-function: step-end;">animation-timing-function: step-end;</code>
        </p>
        <div class="example-description">
          <p>The animation stays at the <strong>initial state</strong> until the end, when it <em>instantly</em> jumps to the <strong>final state</strong>.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div animation-timing-function  square square--plum" id="animation-timing-function-step-end">Hello<br>World</div>
        </div>
      </aside>
          <style type="text/css">#animation-timing-function-step-end{ animation-timing-function:step-end;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="animation-timing-function: steps(4, end);">animation-timing-function: steps(4, end);</code>
        </p>
        <div class="example-description">
          <p>By using <code>steps()</code> with an <strong>integer</strong>, you can define a specific <em>number</em> of steps before reaching the end. The state of the element will <em>not</em> vary gradually, but rather <strong>jump</strong> from state to state in separate instants.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div animation-timing-function  square square--plum" id="animation-timing-function-steps4-end">Hello<br>World</div>
        </div>
      </aside>
          <style type="text/css">#animation-timing-function-steps4-end{ animation-timing-function:steps(4, end);}</style>
    </section>

</section>
